package com.wfs.myapp.entity.domain;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;

@Data
@ToString
@MappedSuperclass
@EntityListeners({AuditingEntityListener.class})
public class BaseField {

    /**
     * 是否删除
     */
    private Integer isDel = 0;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime = LocalDateTime.now();

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime = LocalDateTime.now();

}
